#include <QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[]) {
    QApplication a(argc, argv);
    MainWindow w;
    w.resize(800,600);

    MyFilter  filter;
    w.out->installEventFilter(&filter);
    w.installEventFilter(&filter);
    w.show();
    return a.exec();
}
